package com.fifth.apartment.service.impl;

import com.fifth.apartment.entity.Login;
import com.fifth.apartment.mapper.ManagerLoginMapper;
import com.fifth.apartment.service.ManagerLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * TODO
 *
 * @author Dao
 * @since 2024/7/12
 */
@Service
public class ManagerLoginServiceImpl  implements ManagerLoginService {
    @Autowired
    private  ManagerLoginMapper mapper;

    @Override
    public String administratorsLogin(Login login) {
        String account = login.getAccount();
        String administratorsPwd = mapper.selectAdministratorsPwd(account);
        return administratorsPwd;
    }

    @Override
    public String housekeeperLogin(Login login) {
        String account = login.getAccount();
        String housekeeperPwd = mapper.selectHousekeeperPwd(account);
        return housekeeperPwd;
    }
}
